import os
import unittest
from cases.Base_Case import BASECASE
from config.config import DATA_PATH
from page.index import IndexPage
from page.住院护士站.住院护士站.zhuyuanhushizhan__page import zhuyuanhushizhan
from tools.sjqd_way import read_data_from_excel
class TestZhuyuanhushizhan_Anpaichuangwei(BASECASE):
    @classmethod
    def setUpClass(cls):
        ap = IndexPage()
        ap.jrym_no1('住院护士站')
    @classmethod
    def tearDownClass(cls):
        ap = IndexPage()
        ap.close_all_xxk()
        print("{}执行完毕-------------------------------------------------".format(cls))
    #安排床位
    def  test_1_zhuyuanhushizhan_anpaichuangwei(self):
        self.data = read_data_from_excel(os.path.join(DATA_PATH, "datas.xls"), "住院护士站安排床位")
        bq,zzys,sjys,kzr,zrhs = self.data[0]
        bp = zhuyuanhushizhan()
        bp.choose_bq(bq)                    # 选择病区
        bp.ckick_apcw(zzys,sjys,kzr,zrhs)   # 安排床位
if __name__ == '__main__':
    unittest.main()
